﻿using AutoMapper;
using TrackSystem.Entities.Dtos.Channel;
using TrackSystem.Entities.Dtos.Equip;
using TrackSystem.Entities.Dtos.Sensor;
using TrackSystem.Entities.Models;


namespace TrackSystem.UI.Server
{
    public class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<EquipTable, EquipDto>();
            CreateMap<EquipWithSensorsDto, EquipDto>();

            CreateMap<ChannelDto, ChnTCPForCreateDto>();
            CreateMap<ChannelDto, ChnUDPForCreateDto>();
            CreateMap<ChannelDto, ChnSerialForCreateDto>();

            CreateMap<SensorWithChannelDto, SensorForCreatedDto>();
            CreateMap<SensorWithChannelDto, SensorForUpdateDto>();
        }
    }
}
